import request from '@/utils/request'
// 分页获取公告
export function getAfficheListPage(data){
    return request({
      url: 'affice/getAfficheListPage',
      method: 'post',
      data: data
    })
  }
// 添加公告
export function saveAffiche(data){
    return request({
      url: 'affice/saveAffiche',
      method: 'post',
      data: data
    })
  }
//发送当前公告给所有人
export function sendMerchantAfficheAll(data){
    return request({
      url: 'affice/sendMerchantAfficheAll',
      method: 'post',
      data: data
    })
  }
//修改公告
export function updateAffiche(data){
    return request({
      url: 'affice/updateAffiche',
      method: 'post',
      data: data
    })
  }

//删除公告
export function deleteAffiche(data){
  return request({
    url: 'affice/deleteAffiche',
    method: 'post',
    data: data
  })
}
  //获取登录用户的公告数据
export function getAfficheByMerchantId(data){
  return request({
    url: 'affice/getAfficheByMerchantId',
    method: 'post',
    data: data
  })
}
//公告详情
export function getAfficheById(data){
  return request({
    url: 'affice/getAfficheById',
    method: 'post',
    data: data
  })
}
//修改阅读状态
export function updateReadStatus(data){
  return request({
    url: 'affice/updateReadStatus',
    method: 'post',
    data: data
  })
}
// 用户删除公告
export function deleteStoreUserAffiche(data){
  return request({
    url: 'affice/deleteStoreUserAffiche',
    method: 'post',
    data: data
  })
}
